package com.smart.test;

/**
 * <p><b>Description:</b>  TODO
 * <p><b>Company:</b>
 *
 * @author created by Jesse Xu at 9:42 on 2019/10/8
 * @version V0.1
 * @classNmae ClientThread
 */
public class ClientThread extends Thread {

    private Sequence sequence;

    public ClientThread(Sequence sequence){
        this.sequence =sequence;
    }
    @Override
    public void run() {
        for(int i = 0;i<3;i++){
            System.out.println(Thread.currentThread().getName()+"=>"+sequence.getNumber(0));
        }
    }
}
